home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Your Choice 1
/
your choice.zip
/
your choice
/
OS2
/
AM4PM
/
PLAY.AMC
< prev
next >
Wrap
Text File
|
1993-06-13
|
1KB
|
20 lines
/*********************************************************************/
/* PLAY.AMC - Play a message to the speaker */
/* *//* This program is called by AM4PM.EXE when the user wants to play */
/* a message selected from the listbox. */
/* */
/* Input: The name of the file to play */
/* *//* Output: 0 Normal. Only AT+VLS=0 is done before waiting */
/* 1 Full init. Reinit COM-port and everything. */
/* 2 Terminate AM4PM. */
/* *//*********************************************************************/
CALL AMDPrint 'PLAY.AMC('arg(1)') started'
CALL AMSetLastEventText 'Play'
CALL AMSetStateText 'Playing message'
AMSendW('AT+VLS=16')
DLECode=AMPlayFile(arg(1))
Exit 0